#include "time/TimeInclude.h"
#ifndef unigame_TimerTest_h
#define unigame_TimerTest_h

namespace unigame
{
	class TimerTest: public ITimerCallBack
	{
	public:
		TimerTest():ITimerCallBack()
		{
			m_currentTime = 10;
			Timer::instance()->registerRealTimeTimer(this, 1, 1);
		}

		virtual void onTimeUp(int32u iden, float overTime)
		{
			--m_currentTime;
			printf("%d\n", m_currentTime);
			if(m_currentTime == 1)
			{
				Timer::instance()->removeAllRealTimeTimerOf(this);
			}
		}

		int m_currentTime;
	};
}

#endif